package com.test.qpbgboot.show.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalTime;
import java.util.List;

@Data
public class EscortSaveParam {
    @ApiModelProperty(value = "陪玩id")
    private Long id;
    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "用户id不能为空")
    private Long userId;
    @ApiModelProperty(value = "店家id")
    private Long shopId;
    @ApiModelProperty(value = "陪玩介绍")
    private String description;
    @ApiModelProperty(value = "照片展示列表")
    private List<String> imgUrlList;
    @ApiModelProperty(value = "上班时间")
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime workingHoursFrom;
    @ApiModelProperty(value = "下班时间")
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime workingHoursTo;
    @ApiModelProperty(value = "陪玩价格")
    @Min(0)
    private BigDecimal price;
    @ApiModelProperty(value = "是否展示 0不展示 1展示", required = true)
    @NotBlank(message = "是否展示不能为空")
    private String visible;
}
